package cn.tom.entity;
// 嵌套 user clz course
public class Task {
   private int kid;
   private User user;
   private Clz clz;
   private Course course;
    public Task() {
        System.out.println("task()构造方法");
        user = new User();
        clz = new Clz();
        course = new Course();
    }

    public void setKid(int kid) {
        this.kid = kid;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public void setClz(Clz clz) {
        this.clz = clz;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public int getKid() {
        return kid;
    }

    public User getUser() {
        return user;
    }

    public Clz getClz() {
        return clz;
    }

    public Course getCourse() {
        return course;
    }

    @Override
    public String toString() {
        return "Task{" +
                "kid=" + kid +
                ", user=" + user +
                ", clz=" + clz +
                ", course=" + course +
                '}';
    }
}
